package com.eduask.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.eduask.beans.Manager;
import com.eduask.dao.ManagerDAO;
import com.eduask.service.ManagerService;

@Transactional
@Service
public class ManagerServiceImpl implements ManagerService{

	@Autowired
	private ManagerDAO managerDAO;
	
	@Override
	public List<Manager> findAll() {

		return managerDAO.findAllManagers();
	}

	@Override
	public Manager findById(Integer id) {

		return managerDAO.findManagerById(id);
	}

}
